/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.clinic.patient.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.clinic.patient.entity.PtPatient;
import com.thinkgem.jeesite.modules.clinic.patient.dao.PtPatientDao;

/**
 * 单表生成Service
 * @author lizhengheng
 * @version 2018-03-19
 */
@Service
@Transactional(readOnly = true)
public class PtPatientService extends CrudService<PtPatientDao, PtPatient> {

	public PtPatient get(String id) {
		return super.get(id);
	}
	
	public List<PtPatient> findList(PtPatient ptPatient) {
		return super.findList(ptPatient);
	}
	
	public Page<PtPatient> findPage(Page<PtPatient> page, PtPatient ptPatient) {
		return super.findPage(page, ptPatient);
	}
	
	@Transactional(readOnly = false)
	public void save(PtPatient ptPatient) {
		super.save(ptPatient);
	}
	
	@Transactional(readOnly = false)
	public void delete(PtPatient ptPatient) {
		super.delete(ptPatient);
	}
	
}